package com.siyu.basedata.rsvrgis.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.rsvrgis.mapper.RsvrGisMapper;
import com.siyu.basedata.rsvrgis.domain.RsvrGis;
import com.siyu.basedata.rsvrgis.service.IRsvrGisService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.basedata.rsvrgis.mapper.RsvrGisMapper;
import com.siyu.basedata.rsvrgis.domain.RsvrGis;
import com.siyu.basedata.rsvrgis.service.IRsvrGisService;

/**
 * gis数据和水库关联Service业务层处理
 *
 * @author hrhy
 * @date 2024-07-18
 */
@Service
public class RsvrGisServiceImpl extends ServiceImpl<RsvrGisMapper, RsvrGis> implements IRsvrGisService {
    @Autowired
    private RsvrGisMapper rsvrGisMapper;

    /**
     * 查询gis数据和水库关联
     *
     * @param id gis数据和水库关联主键
     * @return gis数据和水库关联
     */
    @Override
    public RsvrGis selectRsvrGisById(String id) {
        return rsvrGisMapper.selectRsvrGisById(id);
    }

    /**
     * 查询gis数据和水库关联列表
     *
     * @param rsvrGis gis数据和水库关联
     * @return gis数据和水库关联
     */
    @Override
    public List<RsvrGis> selectRsvrGisList(RsvrGis rsvrGis) {
        return rsvrGisMapper.selectRsvrGisList(rsvrGis);
    }

    /**
     * 新增gis数据和水库关联
     *
     * @param rsvrGis gis数据和水库关联
     * @return 结果
     */
    @Override
    public int insertRsvrGis(RsvrGis rsvrGis) {
        return rsvrGisMapper.insertRsvrGis(rsvrGis);
    }

    /**
     * 修改gis数据和水库关联
     *
     * @param rsvrGis gis数据和水库关联
     * @return 结果
     */
    @Override
    public int updateRsvrGis(RsvrGis rsvrGis) {
        return rsvrGisMapper.updateRsvrGis(rsvrGis);
    }

    /**
     * 批量删除gis数据和水库关联
     *
     * @param ids 需要删除的gis数据和水库关联主键
     * @return 结果
     */
    @Override
    public int deleteRsvrGisByIds(String[] ids) {
        return rsvrGisMapper.deleteRsvrGisByIds(ids);
    }

    /**
     * 删除gis数据和水库关联信息
     *
     * @param id gis数据和水库关联主键
     * @return 结果
     */
    @Override
    public int deleteRsvrGisById(String id) {
        return rsvrGisMapper.deleteRsvrGisById(id);
    }
}


